Extend <Stepper> with an indicator-only "rail" layout variant.#13103
Conversation
| } | ||
|
|
||
| .googlesitekit-stepper--rail { | ||
| --googlesitekit-stepper-size: 18px; |
There was a problem hiding this comment.
In Figma these are 16.5px, but the active step renders poorly at this size even on 2x displays because the full layout would require padding with quarter-pixels.
18px worked the best across resolutions, matched the layout size in the design, doesn't require special handling for 2x displays, and kept the inner and inactive circle sizes consistent as per the design.
There was a problem hiding this comment.
Thanks @JakePT. I think this is correct anyway, as the full size of the vector appears to be 18px in Figma designs too.
There was a problem hiding this comment.
@nfmohit If you zoom in you'll see some white space though. The green circle itself is 16.5px.
There was a problem hiding this comment.
You're right. I think we can disregard that. LGTM 👍
|
Failing tests appear to be unrelated. |
|
Size Change: 0 B Total Size: 3.71 MB ℹ️ View Unchanged
|
…oogle/site-kit-wp into enhancement/12949-stepper-rail-variant.
|
@ankitrox I've corrected the breakpoint and updated the VRT references. Passing back to you before checks finish because the changes are small, but pass back to me if something unexpectedly fails. Thanks! |
| } | ||
|
|
||
| .googlesitekit-stepper--rail { | ||
| --googlesitekit-stepper-size: 18px; |
There was a problem hiding this comment.
Thanks @JakePT. I think this is correct anyway, as the full size of the vector appears to be 18px in Figma designs too.
Summary
Addresses issue:
<Stepper>with an indicator-only "rail" layout variant #12949Relevant technical choices
PR Author Checklist
Do not alter or remove anything below. The following sections will be managed by moderators only.
Code Reviewer Checklist
Merge Reviewer Checklist